-- GENERATED SPELL FOR [Ethereal Sphere] --


function spell0_32582(pUnit, Event) --@Arcane Power,n/a--
pUnit:FullCastSpellOnTarget(59474,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32582', 8340, 1)
end

function Sorts_32582(pUnit, Event)
local choix_sorts_32582 = math.random(0, 0)
if choix_sorts_32582 == 0 then
pUnit:RegisterEvent('spell0_32582', 1, 1)
end
end

function mob32582_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32582', math.random(1500, 3000), 1)
end

function mob32582_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32582_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32582_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32582, 1, 'mob32582_Action')
RegisterUnitEvent(32582, 2, 'mob32582_Leave')
RegisterUnitEvent(32582, 3, 'mob32582_Kill')
RegisterUnitEvent(32582, 4, 'mob32582_Die')
